package com.itlong.cloud.equip.app;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * <desc>
 *      用户呼梯状态业务处理暴露接口
 * </desc>
 *
 * @createDate 2018/04/13
 */
@FeignClient(name = "equip-service")
public interface IAppCloudElevatorCallStatusServiceClient {
    /**
     * <desc>
     *      删除一天前的电梯状态
     * </desc>
     *
     * @return
     * @author Jiaqi.X
     * @createDate 2018/04/13
     */
    @RequestMapping(value = "/app/callState/deleteYestodayCallStatus",method = RequestMethod.POST)
    Integer deleteYestodayCallStatus();

    /**
     * <desc>
     *      将所有超过10分钟都没有预约完成的电梯状态修改为呼梯失败
     * </desc>
     *
     * @return
     * @author Jiaqi.X
     * @createDate 2018/04/13
     */
    @RequestMapping(value = "/app/callState/setCallStatusAsCallDefeat",method = RequestMethod.POST)
    Integer setCallStatusAsCallDefeat();

    /**
     * <desc>
     *      冷表数据转移
     * </desc>
     *
     * @createDate 2020/04/13
     * @author Jiaqi.X
     */
    @RequestMapping(value = "/app/callState/coldDataRemove",method = RequestMethod.POST)
    void coldDataRemove() throws Exception;
}
